undo

open fun undo(): EditorCommand

Returns a command that allows reversing the last action.